// 获取id参数

import { useSearchParams, useParams } from 'react-router-dom'

const About = () => {
  // const [params] = useSearchParams()
  // console.log(params)
  // const id = params.get('id')
  const params = useParams()
  const id = params.id
  return <div>this is About,获取到的路由参数为 {id}</div>
}

export default About
